<template>
    shop模块：
    <div v-for="item in list" :key="item.id">
        <p>商品id：{{item.id}}</p>
        <p>商品名称：{{item.name}}</p>
        <p>商品价格：{{item.price}}</p>
    </div>
</template>

<script setup>
import {useUserStore} from '../store/shop.js'
import {storeToRefs} from 'pinia'

const shop=useUserStore()
const {list} = storeToRefs(shop)
</script>